package com.ace.trade.user.api;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.test.mq.common.api.IUserApi;
import org.test.mq.common.protocol.user.QueryUserReq;
import org.test.mq.common.protocol.user.QueryUserRes;

import com.ace.trade.user.service.IUserService;

@Controller
public class UserApiImpl implements IUserApi {
//	@Autowired
//	private IUserService userService;

	@RequestMapping(value = "/queryUserById", method = RequestMethod.GET)
	@ResponseBody
	public QueryUserRes queryUserById(Integer id) {
		QueryUserReq queryUserReq = new QueryUserReq();
		queryUserReq.setUserId(id);
		System.out.println("receive request queryUserById ,id:"+id);
		return new QueryUserRes();
//		return this.userService.queryUserById(queryUserReq);
	}

	public QueryUserRes queryUserById(QueryUserReq queryUserReq) {
//		return this.userService.queryUserById(queryUserReq);
		return new QueryUserRes();
}

}
